package com.sky.mapper.admin;

import com.sky.pojo.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @version: 1.0
 * @Author: 李佳毅
 * @description:
 * @date: 2025-07-06 21:39
 */
@Mapper
public interface DishFlavorMapper {

    /**
     * 批量插入菜品口味数据
     * @param flavors
     * @return
     */
    int insertBatch(@Param("flavors") List<DishFlavor> flavors);
    List<DishFlavor> selectByDishIds(@Param("ids") List<Long> ids);

    void deleteByDishIds(List<Long> ids);
}
